package logic;

import java.sql.SQLException;
import java.util.ArrayList;

import sql.Check_login;
/**
 * 
 * @author HP
 *
 */
public class LogicLogin {
	private String name;
	private String pass;
	ArrayList<String> user= new ArrayList<String>();
	/**
	 * 
	 * @param name1
	 * @param pass1
	 */
public LogicLogin(String name1, String pass1) {
		name=name1;
		pass=pass1;
	}

	public ArrayList<String> checkLogin() throws SQLException{
		Check_login check = new Check_login();
		 user =check.checklogin(name, pass);
		return user;
	}
	
}
